package com.yunsc.store.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 小票打印机记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:51
 */
@Data
@TableName("yunsc_printer")
public class YunscPrinterEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 打印机ID
	 */
	@TableId
	private Integer printerId;
	/**
	 * 打印机名称
	 */
	private String printerName;
	/**
	 * 打印机类型
	 */
	private String printerType;
	/**
	 * 打印机配置
	 */
	private String printerConfig;
	/**
	 * 打印联数(次数)
	 */
	private Integer printTimes;
	/**
	 * 排序 (数字越小越靠前)
	 */
	private Integer sort;
	/**
	 * 是否删除
	 */
	private Integer isDelete;
	/**
	 * 商城ID
	 */
	private Integer storeId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer updateTime;

}
